package your.Grafos;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

public class CaioActivity extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        Grafo graph= new Grafo();
		graph.addVertice();
		graph.addVertice("oi");
		graph.addVertice();
		graph.addVertice();
		graph.addAresta(0,1);
		graph.addAresta(1,2);
		graph.arestas.toString();
        TextView tv = new TextView(this);
        tv.setText(graph.findShortestPath(graph.getVertice(1), graph.getVertice(2)).toString());
        setContentView(tv);
    }
}